Skip to content

chore(security): Dependabot + SHA-pinned Actions - #1

Merged
LD-RW merged 1 commit into
mainfrom
chore/dependabot-and-sha-pinning
Jul 14, 2026
Merged

chore(security): Dependabot + SHA-pinned Actions#1
LD-RW merged 1 commit into
mainfrom
chore/dependabot-and-sha-pinning

Conversation

@LD-RW

@LD-RW LD-RW commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Adds .github/dependabot.yml covering gomod and github-actions ecosystems (weekly), and pins all workflow Actions to full commit SHAs with # vX.Y.Z comments so Dependabot can bump the pins.

Why SHAs: a tag like @v4 is a mutable ref — a compromised release re-tags it and every consumer silently runs attacker code (the 2024 tj-actions/changed-files incident). A 40-char commit SHA is immutable.

Also scopes the workflow token to contents: read.

- Enable Dependabot for gomod and github-actions ecosystems (weekly)
- Pin all GitHub Actions to full commit SHAs with version comments
  so Dependabot can keep the pins updated
- Scope workflow GITHUB_TOKEN to contents: read

Mitigates mutable-ref build-process attacks (cf. tj-actions/changed-files, 2024).
@LD-RW
LD-RW merged commit 0eb1324 into main Jul 14, 2026
1 check passed
@LD-RW
LD-RW deleted the chore/dependabot-and-sha-pinning branch July 14, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant